TYPE_GIF
TYPE_GIF = 1
Image resizer and converter
$extensions : array
$image_file : string
resize(int $size, string $filename = null, bool $browser_compat = false) : string|false
Resize image to a given size. Use only to shrink an image.
If an image is smaller than specified size it will be not resized.
int | $size | Max width/height size |
string | $filename | Output filename |
bool | $browser_compat | Convert to image type displayable by any browser |
Output type on success, False on failure
convert(int $type, string $filename = null) : bool
Convert image to a given type
int | $type | Destination file type (see class constants) |
string | $filename | Output filename (if empty, original file will be used and filename extension will be modified) |
True on success, False on failure